﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Zeus.Thunder.Core;

namespace SharpTrainer.FileStreams
{
    class GetFilesFromDirTest : ITestCase
    {
        public void Run()
        {
            FileGet fileGet = new FileGet();

            Console.WriteLine("Please input file path: ");
            string path = Console.ReadLine();
            Console.WriteLine("Please input file extension: ");
            string extension = Console.ReadLine();

            List<FileInfo> fileList = fileGet.getFile(path, extension);
            foreach (FileInfo fileInfo in fileList)
            {
                Console.WriteLine(fileInfo.Name);
            }
        }
    }
}
